24. Request Audio Focus

Request Audio Focus

Question:

Start Quiz:

Solution:

INSTRUCTOR NOTE:

For a list of possible streamType values, see the constants that start with the name “STREAM_” in the AudioManager class.

For a list of possible durationHint values, see the constants in the parameter description of the requestAudioFocus method.

Hint: They should both be integer constants from the AudioManager class (spelled in capitalized letters)